<template>
  <div id="error">
    <div class="error-bg">
      <el-image :src="require('@/assets/error.jpg')" alt=""></el-image>
      <div class="btnClick" @click="returnBtn()">返回首页</div>
    </div>
  </div>
</template>
  <script>
export default {
  name: "error",
  data() {
    return {};
  },
  methods: {
    returnBtn() {
      this.$router.push({
        path: "/",
      });
    },
  },
};
</script>
  <style  scoped>
* {
  margin: 0;
  padding: 0;
  list-style: none;
}
html {
  width: 100vw;
  height: 100vh;
  position: relative;
}
.error-bg {
  width: 100vw;
  height: 100vh;
}

.error-bg .btnClick {
  top: 80%;
  left: 40%;
  width: 120px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 10px;
  position: absolute;
  background: #3cbbdc;
  border: 1px solid #3793aa;
  cursor: pointer;
  font-weight: bold;
  color: #fff;
}
.error-bg .btnClick:hover {
  color: greenyellow;
}
</style>
  <style>
.error-bg .el-image {
  width: 100%;
  height: 100%;
  display: block;
}
</style>